package cn.itsource.system.domain;

import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data
public class Employee {
    private Long id;
    private String username;
    private String phone;
    private String email;
    private String salt;
    private String password;
    private Integer age;
    private Integer state;
    private Long logininfoId;

    //保存当前员工的角色信息 - 用于列表展示【id做修改时回显，名字在列表显示】
    private List<Role> dbRoles = new ArrayList<>();

    //添加和修改的时候用于接收 选择的角色 - 中间表只保存id值
    private List<Long> roles = new ArrayList<>();

}
